/**
 * 代码块测试
 * @author smallcatX0 
 * @date    2018-01-12 15:50:18
 * @version $Id$
 */

public class blockTest {
    public static void main(String[] args) {
		bTest t1 = new bTest("t1");
		bTest t2 = new bTest("t2");
	}
}
class bTest {
	public String name;
	public bTest(String name){
		this.name = name;
		System.out.println(this.name+" 构造方法运行");
	}
	// 构造块 
	{
		System.out.println(this.name+" 构造块运行");
	}
	// 静态块
	static {
		System.out.println("静态块运行");
	}

}